﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TarreOA.TarreOABLL;
using TarreOA.TarreOAModels;

public partial class PublicCommunication_GroupLinkManInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["pcglm_id"] != null)
        {
            int pcgLmid = int.Parse(Request["pcglm_id"]);
            PublicCommunicationGroupLinkManService pcgLmService = new PublicCommunicationGroupLinkManService();
            PublicCommunicationGroupLinkMantb pcgLinkMan = pcgLmService.findByCglmId(pcgLmid);
            if (pcgLinkMan != null)
            {
                this.TxtGroupName.Text = pcgLinkMan.ComGroup.PcgName;
                this.TxtName.Text = pcgLinkMan.GroupLinkManName;
                this.Title = pcgLinkMan.GroupLinkManName + "的详细信息";
                this.TxtLinkManSec.Text = pcgLinkMan.GroupLinkManSec == 0 ? "男" : "女";
                this.TxtBirthday.Text = pcgLinkMan.GroupLinkManBirthday.ToShortDateString();
                this.TxtName2.Text = pcgLinkMan.GroupLinkManName2;
                this.TxtDuty.Text = pcgLinkMan.GroupLinkManDuty;
                this.TxtUnitName.Text = pcgLinkMan.GroupLinkManUnitName;
                this.TxtUnitAddress.Text = pcgLinkMan.GroupLinkManUnitAddress;
                this.TxtUnitTelephone.Text = pcgLinkMan.GroupLinkManUnitTelephone;
                this.TxtUnitFacsimile.Text = pcgLinkMan.GroupLinkManUnitFacsimile;
                this.TxtFamilyAddress.Text = pcgLinkMan.GroupLinkManHomeAddress;
                this.TxtFamilyTelephone.Text = pcgLinkMan.GroupLinkManHomeTelephone;
                this.TxtHandset.Text = pcgLinkMan.GroupLinkManHandset;
                this.TxtEmail.Text = pcgLinkMan.GroupLinkManEmail;
                this.TxtOicq.Text = pcgLinkMan.GroupLinkManOicq;
                this.TxtMSN.Text = pcgLinkMan.GroupLinkManMsn;
                this.TxtRemark.Text = pcgLinkMan.GroupLinkManRemark;
            }
        }  
    }
}
